import React, { Component, PropTypes } from 'react'
import { Link } from 'react-router'

import CheckboxInput from './CheckboxInput'
import Layers from './Layers'
import './../css/default-table.css'

class Table extends Component {

	constructor (props, context) {
	    super(props, context)
	    //this.handleSelect = this.handleSelect.bind(this)
	    this.state = {
	    	page: 1,
	    	data: {a:1},
	    	isCheck: false
	    } // 初始化状态
	}

	render() {
		const {tableClass, tHead, tBody, style} = this.props

		return (
			<div>
				<table className={tableClass ? tableClass : 'default-table'} style={style}>
					<thead>
						<tr>
							{tHead}
						</tr>
					</thead>
					<tbody>
						{tBody}
					</tbody>
				</table>
				{this.props.children}
			</div>
		)
	}
}

export default Table
